@extends('frontend/layouts/bootstrap')

@section('content')
<h1>Машин бүртгэх</h1>

{{ Form::open(array('route' => 'car_balance.car.create.step1')) }}

<table class="table table-bordered">
    <thead style="background-color: #f0f0f0;">
        <th>Price set</th>
        <th>Auction type</th>
        <th>Auction</th>
        <th>Service company</th>
        <th>Container type</th>
    </thead>

    <tr>
        <td{{ $errors->first('customer_id', ' class="control-group error"') }}>
            {{ Form::select('customer_id', $customer_list, '', array('data-placeholder' => 'Customer', 'class' => 'span2', 'name' => 'customer_id')) }}
            {{ $errors->first('customer_id', '<span class="help-inline">:message</span>') }}
        </td>
        <td{{ $errors->first('car_auction_type', ' class="control-group error"') }}>
            {{ Form::select('car_auction_type', $car_auction_type_list, '', array('data-placeholder' => 'Auction Type', 'class' => 'span2', 'name' => 'car_auction_type')) }}
            {{ $errors->first('car_auction_type', '<span class="help-inline">:message</span>') }}
        </td>
        <td{{ $errors->first('car_auction_id', ' class="control-group error"') }}>
            {{ Form::select('car_auction_id', $car_auction_list, '', array('data-placeholder' => 'Car Auction', 'class' => 'span2', 'name' => 'car_auction_id')) }}
            {{ $errors->first('car_auction_id', '<span class="help-inline">:message</span>') }}
        </td>
        <td{{ $errors->first('service_company_id', ' class="control-group error"') }}>
            {{ Form::select('service_company_id', $service_company_list, '', array('data-placeholder' => 'Service Company', 'class' => 'span2', 'name' => 'service_company_id')) }}
            {{ $errors->first('service_company_id', '<span class="help-inline">:message</span>') }}
        </td>
        <td{{ $errors->first('container_port', ' class="control-group error"') }}>
            {{ Form::select('container_port', $container_ports, '', array('data-placeholder' => 'Container port', 'class' => 'span2', 'name' => 'container_port')) }}
            {{ $errors->first('container_port', '<span class="help-inline">:message</span>') }}
        </td>
    </tr>
</table>

<button type="submit" class="btn btn-large btn-success"><i class="icon-plus icon-white"></i> Үргэлжлүүлэх</button> &nbsp;&nbsp;

{{ Form::close() }}
@stop